package com.hb.software.register.dao;

import com.hb.software.dao.BaseDao;
import com.hb.software.entity.register.Register;
import com.hb.software.entity.user.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface RegisterDao extends BaseDao<Register,Long> {
    //根据id查询用户
    User findById(Long id);

    //根据用户名查询用户
    Register findByUsername(String username);

    //Long findLastId();

    //注册用户
    void save(User user);

    String selectAdminnum();

    void updateAdminnum(String adminnum);
}
